#include <stdio.h>
//打印*
int main()
{
    int num = 0;
    scanf("%d", &num);
    int i = 0;
    for(i=0; i<num; i++)
    {   int j = 0;
        for(j=0; j<num; j++)
        {
            if((i==j)||(i + j == (num - 1)))
                printf("*");
            else
                printf(" ");
        }
        printf("\n");
    }
}